﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace SmartSpace.Core
{
    [Table("core_site")]
    public class Site : IKeyEntity
    {
        [Key]
        public Guid Id { get; set; }
        public string Name { get; set; }
        public string ShortName { get; set; }

        public Guid? ImageId { get; set; }

        public bool IsActive { get; set; }

        public int SortIndex { get; set; }

        public Guid TemplateId { get; set; }

        /// <summary>
        /// 应用程序类别，和theme,module的type意义一样
        /// </summary>
        public string Type { get; set; }

        public string Copyright { get; set; }

        public bool IsAllowAnonymous { get; set; }
        public Guid? AnonymousUserId { get; set; }
        public Guid? DefaultPageId { get; set; }
        /// <summary>
        /// 系统默认管理员账号
        /// </summary>
        public Guid? AdminUserId { get; set; }


        public void Validation()
        {
            throw new NotImplementedException();
        }
    }
}
